package kassiopeia.gui.task

class Connection implements Comparable {

    static belongsTo = [task:Task]

    static constraints = {
        task (unique:['fromInstanceId','fromOutputId','toInstanceId'])
    }

    Date dateCreated

    String fromInstanceId
    String fromOutputId
    String toInstanceId

    int compareTo(obj) {
        dateCreated.compareTo(obj.dateCreated)
    }
}
